package cn.learn.server.data;

import cn.learn.server.Record;
import cn.learn.server.jute.BinaryOutputArchive;
import cn.learn.server.jute.InputArchive;
import cn.learn.server.jute.OutputArchive;

import java.io.IOException;

public class ACL implements Record {
    private int perms;
    private Id id;
    public ACL() {
    }
    public ACL(int perms, Id id) {
        this.perms=perms;
        this.id=id;
    }

    @Override
    public void serialize(OutputArchive a_, String tag) throws IOException {
        a_.startRecord(this,tag);
        a_.writeInt(perms,"perms");
        a_.writeRecord(id,"id");
        a_.endRecord(this,tag);
    }

    @Override
    public void deserialize(InputArchive ia, String fileheader) throws IOException {

    }
}
